package com.tc.activiti.user.mapper;


import com.tc.activiti.user.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserMapper {

    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    void selectByPrimaryKey();

    List<SysUser> findAll();

    List<SysUser> findByPage(@Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);

    SysUser findByUsername(String username);
}